<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="./../../template/tagedu.xhtml">

    <ui:define name="title">
        <title><h:outputText value="Alertas - TAG"/></title>
    </ui:define>

    <ui:define name="content">
        <h1 class="title marginBottomTopMedium">Alertas</h1>
        <h:form id="warningF">
            <p:tabView orientation="left" dynamic="true" effect="blind">
                <p:ajax event="tabChange" update="warningF"/>
                <p:tab title="Todos">
                    <p:dataTable id="warnings" value="#{warningMB.roots}" var="alerts">
                        <p:column headerText="Mensagens">
                            <h:link outcome="/educational/questions/weightAndHeight.xhtml" value="#{alerts.type.message}"/>
                        </p:column>
                    </p:dataTable>
                </p:tab>
                <p:tab title="Hb">
                    <p:dataTable id="warnings" value="#{warningMB.roots(warningMB.anemic)}" var="alerts">
                        <p:column headerText="Mensagens">
                            <h:link outcome="/educational/questions/weightAndHeight.xhtml" value="#{alerts.type.message}"/>
                        </p:column>
                    </p:dataTable>
                </p:tab>
            </p:tabView>
        </h:form>
    </ui:define>

    <ui:define name="modals">
    </ui:define>
</ui:composition>